package com.club.football.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.club.football.dto.PageDto;
import com.club.football.dto.ScheduleSaveDto;
import com.club.football.entity.Schedule;
import com.club.football.req.SchedulePageReq;
import com.club.football.utils.R;
import com.club.football.vo.SchedulePageVo;

/**
 * 赛程服务
 *
 * @author 1
 * @date 2024/01/09
 */
public interface ScheduleService extends IService<Schedule> {
    /**
     * 计划页面
     *
     * @param pageDto         页数到页
     * @param schedulePageReq 计划寻呼请求
     * @return {@link R}
     */
    R<Page<SchedulePageVo>> schedulePage(PageDto<Schedule> pageDto, SchedulePageReq schedulePageReq);

    /**
     * 赛程保存
     *
     * @param saveDto 将数据保存到
     * @return {@link R}<{@link String}>
     */
    R<String> scheduleSave(ScheduleSaveDto saveDto);
}
